/**
 * caicongyang.com Inc.
 * Copyright (c) 2004-2017 All Rights Reserved.
 */
package com.caicongyang.design.command;

/**
 *
 * 命令模式：把请求对象与执行对象分开来
 * @author caicongyang1
 * @version id: CommandClientTest, v 0.1 17/5/18 下午9:07 caicongyang1 Exp $$
 */
public class CommandClientTest {
    public static void main(String[] args) {
        Receiver receiver = new Receiver();
        Command command = new ConcreteCommand(receiver);
        Invoker invoker = new Invoker();
        invoker.setCommand(command);
        invoker.ExceuteCommand();

    }
}
